package cn.eric.framework.exception.domain;

import cn.eric.framework.exception.domain.exception.BusinessException;

import javax.xml.bind.annotation.*;
import java.util.List;

@XmlRootElement(name = "EException", namespace = "http://www.eric.cn/eexception/schema")
@XmlAccessorType(XmlAccessType.NONE)
public class EExceCfg {
    @XmlElementWrapper(name = "businessErrors")
    @XmlElement(name = "businessError")
    private List<BusinessException> businessExceptions;

    @Override
    public String toString() {
        return "EExceCfg{" +
                "businessExceptions=" + businessExceptions +
                '}';
    }

    public List<BusinessException> getBusinessExceptions() {
        return businessExceptions;
    }

    public void setBusinessExceptions(List<BusinessException> businessExceptions) {
        this.businessExceptions = businessExceptions;
    }
}
